home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / Projects / Tutorial Material / Pitch and Rhythm Tutorial / symbol-to-tonality < prev   
Lisp/Scheme  |  1998-10-26  |  297b  |  14 lines

  1. ; - how will my symbol melodies map to tonalities? A short example:
  2.  
  3. (setq symb1 '(a b c d e f g))
  4. (setq symb2 '(b d e d e))
  5.  
  6. (setq chords (flatten
  7.     (symbols-to-tonality
  8.         symbols (append symb1 symb2)
  9.         transpose '((0))
  10.         mapping (activate-tonality (chromatic c 3))
  11.     ))
  12. )
  13.  
  14.